import { sleep } from "src/util/sleep.util";

/**
* @author nie
* @description 在此定义任务
* @email a896211755@gmail.com
*/
let taskFunction = {
   test:async(params: any)=>{
      return params
   }
}

module.exports = async (data :any) => {
  
let result = await taskFunction[data.name](data.params)
  return result;
};